<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<div class="panel-heading">
	<h3 class="panel-title">我回复的帖子</h3>
</div>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<table class="table">
	<thead>
		<tr>
			<th width="70%" align="center">帖子标题</th>
			<th width="10%" align="center">评论数量</th>
			<th width="20%" align="center">最后评论时间</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="discuss" items="${dataList}" varStatus="index">
		<tr>
			<td class="title">
				<c:choose>
					<c:when test="${discuss.discuss_type==1}">
					<a href="<%=path %>/uncheck/activity/view/${discuss.discuss_target_id}">【活&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;动】:${discuss.title}</a>
					</c:when>
					<c:when test="${discuss.discuss_type==2}">
					<a href="<%=path %>/uncheck/dishonesty/view/${discuss.discuss_target_id}">【平台失信】:${discuss.title}</a>
					</c:when>
					<c:when test="${discuss.discuss_type==3}">
					<a href="<%=path %>/uncheck/channel/view/${discuss.discuss_target_id}">【渠&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;道】:${discuss.title}</a>
					</c:when>
					<c:when test="${discuss.discuss_type==4}">
					<a href="<%=path %>/uncheck/promotion/view/${discuss.discuss_target_id}">【引流需求】:${discuss.title}</a>
					</c:when>
				</c:choose>
				
			</td>
			<td >
				${discuss.discuss_count}</a>
			</td>
			<td><fmt:formatDate value="${discuss.last_discuss_time}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<!-- 分页 -->
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryMyDiscussList" style="text-center"></p:pagination>
<!-- 分页 end -->
</c:when>
<c:otherwise>
	<table class="table">
		<thead>
			<tr>
				<th>帖子标题</th>
				<th>评论数量</th>
				<th>最后评论时间</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="3" align="center">
					暂无数据
				</td>
			</tr>
		</tbody>
	</table>
</c:otherwise>
</c:choose>